package com.ruoyi.system.service.impl;

import java.util.List;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ruoyi.system.domain.TSpCountTax;
import com.ruoyi.system.mapper.TSpCountTaxMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.TBaseProjectDetailsMapper;
import com.ruoyi.system.domain.TBaseProjectDetails;
import com.ruoyi.system.service.ITBaseProjectDetailsService;

/**
 * 项目周期明细Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-04-28
 */
@Service
public class TBaseProjectDetailsServiceImpl extends ServiceImpl<TBaseProjectDetailsMapper, TBaseProjectDetails> implements ITBaseProjectDetailsService
{
    @Autowired
    private TBaseProjectDetailsMapper tBaseProjectDetailsMapper;

    /**
     * 查询项目周期明细
     * 
     * @param pdId 项目周期明细主键
     * @return 项目周期明细
     */
    @Override
    public TBaseProjectDetails selectTBaseProjectDetailsByPdId(Long pdId)
    {
        return tBaseProjectDetailsMapper.selectTBaseProjectDetailsByPdId(pdId);
    }

    /**
     * 查询项目周期明细列表
     * 
     * @param tBaseProjectDetails 项目周期明细
     * @return 项目周期明细
     */
    @Override
    public List<TBaseProjectDetails> selectTBaseProjectDetailsList(TBaseProjectDetails tBaseProjectDetails)
    {
        return tBaseProjectDetailsMapper.selectTBaseProjectDetailsList(tBaseProjectDetails);
    }

    /**
     * 新增项目周期明细
     * 
     * @param tBaseProjectDetails 项目周期明细
     * @return 结果
     */
    @Override
    public int insertTBaseProjectDetails(TBaseProjectDetails tBaseProjectDetails)
    {
        return tBaseProjectDetailsMapper.insertTBaseProjectDetails(tBaseProjectDetails);
    }

    /**
     * 修改项目周期明细
     * 
     * @param tBaseProjectDetails 项目周期明细
     * @return 结果
     */
    @Override
    public int updateTBaseProjectDetails(TBaseProjectDetails tBaseProjectDetails)
    {
        return tBaseProjectDetailsMapper.updateTBaseProjectDetails(tBaseProjectDetails);
    }

    /**
     * 批量删除项目周期明细
     * 
     * @param pdIds 需要删除的项目周期明细主键
     * @return 结果
     */
    @Override
    public int deleteTBaseProjectDetailsByPdIds(Long[] pdIds)
    {
        return tBaseProjectDetailsMapper.deleteTBaseProjectDetailsByPdIds(pdIds);
    }

    /**
     * 删除项目周期明细信息
     * 
     * @param projectId 项目Id
     * @return 结果
     */
    @Override
    public int deleteTBaseProjectDetailsByPdId(Long projectId)
    {
        return tBaseProjectDetailsMapper.deleteTBaseProjectDetailsByPdId(projectId);
    }
}
